package com.hua.designpattern.structural.filter;

import java.util.ArrayList;
import java.util.List;

public class FilterSingleNot implements Filter {

	@Override
	public List<BaseObject> matchFilter(List<BaseObject> objects) {
		List<BaseObject> results = new ArrayList<BaseObject>();
		for (BaseObject object : objects) {
			if (!object.isSingle()) {
				results.add(object);
			}
		}
		return results;
	}

}
